package com.example.order;

//import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.example")
@MapperScan(basePackages = {"com.example.order.dao"})
public class OrderApplication {

    // SpringBoot根据你添加的jar包来配置你的项目的默认配置，比如根据spring-boot-starter-web，
    // 来判断你的项目是否需要添加webmvc和tomcat，
    // 就会自动帮你配置web项目中所需要的默认配置
    // 以jar包的的形式搭建
    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class, args);
    }

    // 以war包的的形式搭建
	/*protected SpringApplicationBuilder configure (SpringApplicationBuilder builder){
		return builder.configure(builder).sources(App.class);
	}*/
}
